package org.boulderfoodrescue.webapp.client;

import com.google.gwt.user.client.Window;

public class ApiKeys {
	private static String MAPS_API_KEY = "AIzaSyDRiOXD_Kw7Ak4YE-ojJEoZ4CakUVtxeSQ";
	private static String LOCAL_MAPS_API_KEY = "ABQIAAAAIRCSNxWA2T7NI77yGDX_RhSyfHLaLZ5YmH8k-Ct7ktxrMA33rBTSLnYthAn36MudL9pOLD552Do8uA";
	public static String getMAPS_API_KEY() {
		String host = Window.Location.getHost();
		if(host.equals("127.0.0.1:8888"))
			return LOCAL_MAPS_API_KEY;
		else if(host.toLowerCase().equals("localhost:8888"))
			return LOCAL_MAPS_API_KEY;
		return MAPS_API_KEY;
	}
}
